package com.youaishujuhui.devops.web.domain.game;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Default;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Table("t_game")
@Getter
@Setter
@ToString
public class Game {

	@Id
	@Comment("游戏id")
    private int gameId;
	
	@Column
	@Comment("部门/工作室id")
    public int deptId;
	
	@One(field = "deptId")
	private Department department;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("游戏中文名")
	private String nameCn;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("游戏英文名")
	private String nameEn;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("服务端程序包目录名")
	private String packageDir;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("逻辑数据库名")
	private String gameDbName;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("日志数据库名")
	private String logDbName;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("游戏域名")
	private String domain;
	
	@Column
	@Default("1")
	@Comment("状态:1:正常,0:已删除")
	private int state;
	
	
}
